package com.leave.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 系统类
 *
 */
public class StudentServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;

	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		// 获取请求的方法
		String method = request.getParameter("method");

		if ("toStudent_Leave_apply".equalsIgnoreCase(method)) { // 到学生请假界面
			request.getRequestDispatcher("/WEB-INF/jsp/student/leave_apply.jsp").forward(request, response);
		} else if ("toStudent_Leave_Cancle".equals(method)) { // 到学生销假界面
			request.getRequestDispatcher("/WEB-INF/jsp/student/leave_cancle.jsp").forward(request, response);
		} else if ("toStudent_Leave_Record".equals(method)) { // 到学生请假记录界面
			request.getRequestDispatcher("/WEB-INF/jsp/student/leave_record.jsp").forward(request, response);
		} else if ("toStudent_Leave_show".equals(method)) { // 到学生请假详情界面
			request.getRequestDispatcher("/WEB-INF/jsp/student/leave_show.jsp").forward(request, response);
		}else if ("toStudent_Leave_Update".equals(method)) { // 到学生修改请假界面
			request.getRequestDispatcher("/WEB-INF/jsp/student/leave_update.jsp").forward(request, response);
		}
	}

}
